package club.twelveblog.tblog.common.vo;



import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@NoArgsConstructor
public class BlogInfoVo implements Serializable {

    private static final long serialVersionUID = 294655766971777057L;

    @Id
    private Long bid;//显示博客id

    private String bTitle;//显示博客标题

    private String bPreface;//展示博客前言

    private int bViews;//博客阅读数

    private Date create_Time;//创建时间

    private Long uid;

    private String nickName;//当前博客的编写用户id

    private String userImg;//博客所属的用户头像url

    public BlogInfoVo(Long bid, String bTitle, String bPreface, int bViews, Date create_Time, Long uid, String nickName, String userImg) {
        this.bid = bid;
        this.bTitle = bTitle;
        this.bPreface = bPreface;
        this.bViews = bViews;
        this.create_Time = create_Time;
        this.uid = uid;
        this.nickName = nickName;
        this.userImg = userImg;
    }

}
